﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PCSWpfData
{
    class CombinedDBInitializer : DropCreateDatabaseAlways<CombinedDbContext>
    {
        protected override void Seed(CombinedDbContext context)
        {
            var instruments = new Data().GetData();
            instruments.ForEach(x => context.Instruments.Add(x));
            base.Seed(context);
        }

    }
}
